package com.quan.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "wx.config")
public class WxConfigProperties {
	
	/**
	 * 微信公众号或者小程序等的appid
	 */
	private String appId ;
	
	/**
	 * 微信公众号秘钥
	 */
	private String appSecret ;
	
	/**
	 * 微信公众号令牌
	 */
	private String token ;
	
	/**
	 * 微信授权回调URL
	 */
	private String oauthCallbackUrl;
	
	/**
	 * 微信授权后跳转的URL
	 */
	private String oauthBizPageUrl;

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getOauthCallbackUrl() {
		return oauthCallbackUrl;
	}

	public void setOauthCallbackUrl(String oauthCallbackUrl) {
		this.oauthCallbackUrl = oauthCallbackUrl;
	}

	public String getOauthBizPageUrl() {
		return oauthBizPageUrl;
	}

	public void setOauthBizPageUrl(String oauthBizPageUrl) {
		this.oauthBizPageUrl = oauthBizPageUrl;
	}

	@Override
	public String toString() {
		return "WxConfigProperties [appId=" + appId + ", appSecret=" + appSecret + ", token=" + token + ", oauthCallbackUrl=" + oauthCallbackUrl + ", oauthBizPageUrl=" + oauthBizPageUrl + "]";
	}
	

}
